package com.my.system.controller;

import com.my.common.core.domain.R;
import com.my.system.domain.LoginDTO;
import com.my.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/sysUser")
@RestController
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping("/login")
    public R<Boolean> login(@RequestBody LoginDTO loginDTO){
        sysUserService.login(loginDTO.getUserAccount(),loginDTO.getPassword());
        return null;
    }



}
